﻿<%@ Page Title="Contact Now" Language="C#" MasterPageFile="~/GuestView.master" AutoEventWireup="true"
    CodeBehind="PageContactMessage.aspx.cs" Inherits="BestBuy.PageGuest.PageContactMessage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <div class="container">
        <table width="100%">
            <tr>
                <td colspan="2">
                    <div id="linkQuick" runat="server">
                        <a href="../Default.aspx">Home </a>>
                    </div>
                    <div style="padding-bottom: 50px;">
                    </div>
                </td>
            </tr>
            <tr>
                <td style="width: 40%">
                    <asp:Panel ID="pnError" runat="server">
                        <asp:Label ID="lbError" runat="server"></asp:Label>
                    </asp:Panel>
                    <asp:ValidationSummary ID="ValidationSummary" ValidationGroup="messagegroup" runat="server"
                        CssClass="error" />
                </td>
                <td style="width: 60%">
                    <asp:Panel ID="pnContact" runat="server" CssClass="message_exist">
                        <div class="info">
                            Previously you had to contact this account</div>
                        <div>
                            <div style="margin: 0px 0px 0px 0px">
                                <div style="margin-bottom: 0px">
                                </div>
                                <div style="margin: 0px; padding: 0px; border: 0px inset;">
                                    <div style="display: none;">
                                        <p style="color: GrayText;">
                                            <asp:Label ID="lbNoiDung" runat="server"></asp:Label></p>
                                    </div>
                                    <img alt="" id="img_anhien" src="../Images/Layout/sortdesc.gif" title="More" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != ''){ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.src = '../Images/Layout/sortasc.gif';this.title='Less'; 
		                                            }
		                                            else 
		                                            { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.src = '../Images/Layout/sortdesc.gif';this.title='More'; }" />
                                </div>
                            </div>
                        </div>
                    </asp:Panel>
                    <br />
                </td>
            </tr>
            <tr>
                <td align="right" style="padding-bottom: 10px; padding-right: 30px; width: 30%;">
                    To :
                </td>
                <td style="padding-bottom: 10px">
                    <asp:Label ID="lbPerson" runat="server"></asp:Label>
                    <asp:Label ID="lbCompanyContact" runat="server" Style="color: Green; font-weight: bold;"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right" style="vertical-align: top; padding-bottom: 10px; padding-right: 30px;
                    width: 30%;">
                    For :
                </td>
                <td style="padding-bottom: 10px">
                    <div id="linkContact" runat="server">
                    </div>
                </td>
            </tr>
            <tr>
                <td align="right" style="vertical-align: top; padding-right: 30px; width: 30%;">
                    Message :
                </td>
                <td>
                    <asp:TextBox ID="txtMessage" runat="server" TextMode="MultiLine" Width="70%" Height="150px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvMessage" runat="server" ControlToValidate="txtMessage"
                        CssClass="failureNotification" ValidationGroup="messagegroup" ErrorMessage="Message isn't emtry.">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right" style="padding-bottom: 10px; padding-right: 30px; width: 30%;">
                    Required Quantity :
                </td>
                <td>
                    <asp:TextBox ID="txtRequiredQuantity" runat="server" Width="170px"></asp:TextBox>
                    <asp:RegularExpressionValidator runat="server" ID="valNumbersOnly" CssClass="failureNotification"
                        ControlToValidate="txtRequiredQuantity" Display="Dynamic" ValidationGroup="messagegroup"
                        ErrorMessage="Just enter a positive integer." ValidationExpression="(^(?=\d*[1-9])\d+$)">
                    *</asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <br />
                    <asp:Button ID="btnSend" ValidationGroup="messagegroup" CssClass="style_button" runat="server"
                        Text="Send Message" OnClick="btnSend_Click" />
                </td>
            </tr>
        </table>
        <div style="padding-bottom: 100px">
        </div>
    </div>
</asp:Content>
